//
//  WMRefreshGifHeader.swift
//  SwiftProject
//
//  Created by qindong on 2021/7/1.
//

import UIKit
// MARK: - 自定义头部刷新
class WMRefreshHeader: MJRefreshHeader {

    lazy var titleLb : QMUILabel = {
        let titleLb : QMUILabel = QMUILabel()
        titleLb.text = "全网优惠上e网惠聚"
        titleLb.font = .sFont(10)
        titleLb.textColor = .white
        addSubview(titleLb)
        return titleLb
    }()

    lazy var imageV : UIImageView = {
        let imageV = UIImageView(imageString: "header_refresh")
        addSubview(imageV)
        return imageV
    }()

    override func placeSubviews() {
        super.placeSubviews()
        self.qmui_height = 60
        imageV.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalToSuperview()
        }

        titleLb.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(imageV.snp.bottom).offset(5)
        }
    }
    
    override func prepare() {
        super.prepare()
    }
}
